package com.wxxymaker.edu.model.entity;

import io.github.biezhi.anima.Model;
import io.github.biezhi.anima.annotation.Ignore;
import io.github.biezhi.anima.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @AUTHOR soft
 * @DATE 2018/9/3 20:20
 * @DESCRIBE 学员参与考试记录
 */
@EqualsAndHashCode(callSuper = false)
@Data
@Table(name = "join_test_paper")
public class JoinTestPaper extends Model {
    private Integer   id;
    private Integer   teaId;       // 试卷发布者id 试卷批阅使用

    private Integer   userId;      // 参与用户
    @Ignore
    private User      user;

    private Integer   courseId;    // 课程id
    @Ignore
    private Course    course;

    private Integer   testPaperId; // 试卷id
    @Ignore
    private TestPaper testpaper;

    /**
     * 该份试卷状态
     * 1. 学习参与考试了,但还没提交答案. 考试记录中有,未批阅记录没有
     * 2. 提交了答案,但没分数 考试记录中有,未批阅记录中有
     * 3. 已经批阅 考试记录中有,已批阅记录中有
     */
    private Integer   status;

    private String    result;      // 学生答案路径
    private Float     score;       // 试卷评分
    private String    time;        // 试卷提交时间
}
